package org.combat;


import org.rsbot.script.methods.MethodContext;
import org.util.MethodGather;

/**
 * Created by IntelliJ IDEA.
 * User: Tim
 * Date: 9/8/11
 * Time: 5:02 PM
 * To change this template use File | Settings | File Templates.
 */
public class Food {
    MethodContext m;
               public Food(MethodGather methodGather, int id){
                    m = methodGather.getMethodContext();
                   foodID=id;
               }
    int foodID;

    /**
     *
     * @param i
     */
           void setFoodID(int i){
               foodID=i;
           }

    /**
     *
     * @return food id
     */
    int getFoodID(){
        return foodID;
    }

    /**
     *  eats specified food id
     */
           void eatFood(){
                m.inventory.getItem(foodID).interact("eat");
           }


}
